package apiday05.io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintWriter;

public class WriteStringDemo {
    public static void main(String[] args) throws FileNotFoundException {
        FileOutputStream fos = new FileOutputStream("demo.txt",true);
        PrintWriter pw = new PrintWriter(fos);
        pw.println("还记得你说家是唯一的城堡。");
        pw.println("随着稻香河流继续奔跑。");
        System.out.println("写出完毕！");
        pw.close();

    }
}
